<?php
require_once(dirname(__FILE__)."/../include/common.inc.php");
$aid = ( isset($aid) && is_numeric($aid) ) ? $aid : 0;


if($aid==0)
{
	if($myset=='ajax')die('0');
	ShowMsg('文档id不能为空!','javascript:window.close();');
	exit();
}

require_once(DEDEINC."/memberlogin.class.php");
$ml = new MemberLogin();

if($ml->M_ID==0)
{
	if($myset=='ajax')die('1');
	ShowMsg('只有会员才允许此操作！','javascript:window.close();');
	exit();
}
		
$dsql->ExecuteNoneQuery("DELETE FROM  #@__member_stow WHERE `aid`='$aid' and `mid`='".$ml->M_ID."'");

if($myset=='ajax')die('6');
ShowMsg('取消收藏成功！','javascript:window.close();');
?>